<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "video".
 *
 * @property integer $id
 * @property string $video_title
 * @property integer $user_id
 * @property string $video_name
 * @property integer $watch_number
 * @property integer $like_number
 * @property integer $step_number
 * @property string $description
 * @property string $create_time
 * @property string $update_time
 */
class Video extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'video';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['user_id', 'watch_number', 'like_number', 'step_number'], 'integer'],
            [['description'], 'string'],
            [['video_title', 'video_name', 'create_time', 'update_time'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'video_title' => 'Video Title',
            'user_id' => 'User ID',
            'video_name' => 'Video Name',
            'watch_number' => 'Watch Number',
            'like_number' => 'Like Number',
            'step_number' => 'Step Number',
            'description' => 'Description',
            'create_time' => 'Create Time',
            'update_time' => 'Update Time',
        ];
    }
}
